package com.cn.wanxi.util;

public class Tool {
    /**
     * 将传递过去的数组转换为字符串
     *
     * @param arr
     * @return
     */
    public static String arrayToString(String[] arr) {
        StringBuilder s = new StringBuilder();
        for (int i = 0; i < arr.length; i++) {
            if (i == arr.length - 1) {
                s.append(arr[i]);
            } else {
                s.append(arr[i]).append(",");
            }
        }
        return s.toString();
    }
}
